include io.asm

stack segment stack
	dw 128 dup (?)
stack ends

;;======================================================================
data segment
	Head db "Vasilenko Anatoly. Group 111.$"
	Input db "Enter please number: $"
	Output db "Answer: $"
	
	mark2 db "Неуд$"
	mark3 db "Удовл$"
	mark4 db "Хорошо$"
	mark5 db "Отлично$"
	
	mark dw mark2, mark3, mark4, mark5
data ends
;;======================================================================

code segment 'code'
	assume ss:stack, ds:data, cs:code
start:
	mov ax,data
	mov ds,ax
	lea dx, Head
	outstr
	newline
	newline
	;;------------------------------------------------------------------
		lea dx, Input;
		outstr;
		
		inch bl;
		sub bl, '2';
		mov bh, 0;
		shl bx, 1;
		
		lea dx, Output;
		outstr;
		
		mov dx, mark[bx]
		outstr;
	;;------------------------------------------------------------------

the_end:
	newline;
	newline;
	mov ah,8
	int 21h
    finish
code ends

;;======================================================================
end start 

;;======================================================================
